package com.java1234jdbc.pojo;




import lombok.*;

import java.time.LocalDateTime;


@Setter
@Getter
@NoArgsConstructor
//@RequiredArgsConstructor
@AllArgsConstructor
@ToString
public class Product {

    private Integer id;

    @NonNull
    private String productName;

    @NonNull
    private Integer quantity;

    @NonNull
    private LocalDateTime createTime;

    public Product(@NonNull String productName, @NonNull Integer quantity, @NonNull LocalDateTime createTime) {
        this.productName = productName;
        this.quantity = quantity;
        this.createTime = createTime;
    }
}


